#include"CPolygon.h"
#include"CRectangle.h"
void CPolygon::setValues(int a,int b){
	width=a;
	height=b;
}
int CRectangle::area(){
	return(width*height);
}
CPolygon::CPolygon(int a){
	width=a;
}

CRectangle::CRectangle(int w,int h):CPolygon(w){
	height=h;
}